<?php
/**
 * Created by PhpStorm.
 * User: shenyvlin
 * Date: 2019/2/26
 * Time: 15:27
 * 会员验证规则
 */
namespace app\api\validate;
use think\validate;
class Orders extends Validate{
    protected $rule = [
        'goods_id' => 'require',
        'sku_id' => 'require',
        'address_id' => 'require',
        'goods_num' => 'require',
        // 'pay_method' => 'require',
        // 'desc' => 'require'
    ];

    protected $message = [
        'goods_id.require' => '缺少商品',
        'sku_id.require' => '请选择商品规格',
        'address_id.require' => '请选择收货地址',
        'goods_num.require' => '请选择购买数量',
        // 'pay_method.require' => '请选择支付方式',
        // 'desc.require' => '请选择商品规格。',
    ];


}